<div class="modal-dialog">
    <form role="form" action="<?= site_url(get_uri_string()) ?>" id="form_mantenimiento" method="post">
        <input type="hidden" name="usu_id" value="<?=$usu_id?>"/>
        <div class="modal-content">                             
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
                <h4 class="modal-title"><?= ulang($accion) ?> usuario</h4>
            </div>
            <div class="modal-body">
                <div class="row">
                    <div class="col-md-12">
                        <div class="form-group">
                            <label for="usu_email">Email</label>
                            <input type="text" value="<?= $infouser ? $infouser['usu_email'] : '' ?>" class="form-control" name="usu_email"/>
                        </div>
                        <div class="form-group">
                            <label for="men_roles">Roles asociados</label>
                            <select class="form-control" id="select-roles" name="usu_fk_rol">
                                <?php
                                foreach ($roles as $rol) {
                                    $selected = "";
                                    
                                    if ($infouser['usu_fk_rol'] == $rol['rol_id']) {
                                        $selected = "selected";
                                    }
                                    echo '<option value="' . $rol['rol_id'] . '" ' . $selected . '>' . $rol['rol_slug'] . '</option>';
                                }
                                ?>
                            </select>
                        </div>
                        <div class="form-group">
                            <label class="col-md-5 control-label">Reenviar contraseña</label>
                            <div class="col-md-7">
                                <div class="checkbox-list">
                                    <label>
                                        <div class="checker">
                                            <span>
                                                <input type="checkbox" class="form-control" name="usu_reenviar_pass" value="S"/>
                                            </span>
                                        </div>
                                    </label>
                                </div>
                            </div>
                        </div>

                    </div>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn default" data-dismiss="modal">Cerrar</button>
                <button type="submit" class="btn blue">Guardar</button>
            </div>
        </div><!-- /.modal-content -->
    </form>
</div>